package user

import (
	"time"
)

const (
	Uid         = "uid"
	SessionInfo = "user_info"
)

type User struct {
	ID            int    `json:"id" storm:"id,increment"`
	Username      string `json:"username" storm:"unique,index"`
	Password      string
	Salt          string
	Status        int       `json:"status"`
	Email         string    `json:"email"`
	Avatar        string    `json:"avatar"`
	Nickname      string    `json:"nickname"`
	Level         int64     `json:"level"`
	Memory        int64     `json:"memory"`
	LastLoginTime time.Time `json:"last_login_time"`
	LastLoginIp   string    `json:"last_login_ip"`
	CreatedAt     time.Time `json:"created_at"`
	UpdatedAt     time.Time
}
